package com.htgd.gardenexpo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 获取详情
 * </p>
 *
 * @author author
 * @since 2024-07-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ge_con_integral_get_details")
@ApiModel(value="GeConIntegralGetDetails对象", description="获取详情")
public class GeConIntegralGetDetails implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "记录ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "openId")
    private String openId;

    @ApiModelProperty(value = "数量")
    private Integer amount;

    @ApiModelProperty(value = "途径")
    private String method;

    @ApiModelProperty(value = "消耗数量")
    private Integer consumeNum;

    @ApiModelProperty(value = "获取时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "积分商品订单号")
    private String orderNum;

    @ApiModelProperty(value = "积分商品名称")
    private String goodsName;

    @ApiModelProperty(value = "用户名")
    @TableField(exist = false)
    private String name;
}
